package com.zynn.feign.module.es;

import com.zynn.common.pojo.result.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author company
 * <p>
 * 同步用户信息的Feign
 */
@FeignClient(value = "service-module-es")
public interface SyncUserFeignService {


    @RequestMapping(value = "/sync/user/createOrUpdate", method = RequestMethod.POST)
    Result syncUser(@RequestParam(value = "userId") Long userId, @RequestParam(value = "nickName") String nickName, @RequestParam(value = "sex") int sex, @RequestParam(value = "headPic") String headPic);
}
